import { Application } from 'egg';

export default (app: Application) => {
    const { CHAR } = app.Sequelize;
    const model = app.model.define('Message', {
        message_id: { type: CHAR(32), primaryKey: true },//主键
        template_id: CHAR(50),//自定义模板消息id
    }, { tableName: 't_message' });
    return model;
};
export class Message {
    message_id: string;
    template_id: string;
}